package com.emergency.assist.domain;

import com.emergency.base.domain.BaseEntity;

import javax.persistence.*;

/**
 * Created by qiuyan.pei on 2020/4/3.
 */
@Entity
@Table(name = "bus_resource_food")
public class Food extends BaseEntity {
    @OneToOne(targetEntity = Resource.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "resource_id", referencedColumnName = "id")
    private Resource resource;

}
